package bit.demo2;



class  TestDemo {
    public static int count = 100;
}

public class Test {

    public static void main(String[] args) {


        Student student1 = new Student();
        System.out.println("=================");
        Student student2 = new Student();
        //System.out.println(Student.classRoom);


    }

    public static void main7(String[] args) {

        {
            int a = 10;
            System.out.println(a);
        }

       // System.out.println(a);


    }

    public static void main6(String[] args) {
        Student student1 = new Student("张三",10);
        System.out.println(student1.getName());

    }

    public int add(int a,int b) {
        return a+b;
    }

    public static void main5(String[] args) {
        Student student1 = new Student("张三",10);
        student1.testFunc();
        System.out.println(student1.getName());

        Student.testStatic();

        Test test = new Test();
        test.add(1,2);

    }
    public static void main4(String[] args) {
        TestDemo testDemo = new TestDemo();
        testDemo.count++;

        TestDemo testDemo2 = new TestDemo();
        testDemo2.count++;

        TestDemo.count--;
        TestDemo.count++;
        TestDemo.count++;
        System.out.println(TestDemo.count);
    }



    public static void main3(String[] args) {
        Student.classRoom = "118Java";
    }


    public static void main2(String[] args) {
        Student student1 = new Student("张三",10);
        Student.classRoom = "118Java";

        Student student2 = new Student("李四",20);
        Student.classRoom = "118Java";

    }

    //类的调用者
    public static void main1(String[] args) {
        Student student = new Student("张三",10);
        //student.name = "lisi";
        //System.out.println(student.name);

        student.setName("lisi");
        System.out.println(student.getName());

    }
}
